package Thread;

public class demo1 {
    public static void main(String[] args) throws InterruptedException {
        Runnable runnable=new MyRunnable();
        Thread t=new Thread(runnable);
        t.start();
        while(true){
            Thread.sleep(1000);
            System.out.println("hello main");
        }

    }
}
